﻿using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;

namespace Inventory.Infrastructure.RedisHelper
{
    public class RedisHelpers 
    {

        //private readonly ConnectionMultiplexer _redis;
        //private readonly IDatabase _database;

        //public RedisHelpers(string connectionString)
        //{
        //    _redis = ConnectionMultiplexer.Connect(connectionString);
        //    _database = _redis.GetDatabase();
        //}
    
        //public async Task<string> GetStringAsync(string key)
        //{
        //    return await _database.StringGetAsync(key);
        //}

        //public async Task SetStringAsync(string key, string value)
        //{
        //    await _database.StringSetAsync(key, value);
        //}

        //public async Task<bool> KeyExistsAsync(string key)
        //{
        //    return await _database.KeyExistsAsync(key);
        //}

        //public async Task DeleteKeyAsync(string key)
        //{
        //    await _database.KeyDeleteAsync(key);
        //}
    }


}

